import service from '@/utils/request'

export const useSpeSubmitApi = (data: any) => {
    if (data.id) return service.put('/sys/specialized', data)
    else return service.post('/sys/specialized', data)
}

export const useGetSpeInfoApi = (id: string) => {
    return service.get('/sys/specialized/info/' + id)
}

export const useSpeSelectApi = () => {
    return service.get('/select/specialized')
}
